﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XZL.GM.Dal;

namespace XZL.GM.Bll
{
   public class ApplyInfoBiz
    {

        /// <summary>
        /// 获取申请列表
        /// </summary>
        /// <param name="ItemID"></param>
        /// <returns></returns>
        /// 
       public static List<Proc_ApplyInfo_SelectListResult> GetApplyList(string realName,int type, int pageIndex, int pageSize, ref int? pageCount)
     {
         Request_GmDataContext hk = new Request_GmDataContext();
        return hk.Proc_ApplyInfo_SelectList(realName,type, pageIndex, pageSize, ref pageCount).ToList();
     }

       public static Proc_ApplyInfo_SelectInfoResult GetApplyInfo(int ApplyID)
     {
         Request_GmDataContext hk = new Request_GmDataContext();
         return hk.Proc_ApplyInfo_SelectInfo(ApplyID).FirstOrDefault();
     }

       public static int GetApplyStatus(int applyID,int status)
       {
            Request_GmDataContext hk = new Request_GmDataContext();
            return hk.Proc_ApplyStatus_Update(applyID,status);
            
       }


    }
}
